package com.ymttest.database.sqlwapper.godmch;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.godmch.markup_condition_level;
import com.ymttest.database.model.godmch.markup_condition_levelExample;
import com.ymttest.utils.EnvSetup;

public class markup_condition_levelWapper {
	SqlManager manage;
	public markup_condition_levelWapper() {
		manage = new SqlManager("mysqlgodmchdb" + EnvSetup.getEnv());
		 
	}
	
	public  List<markup_condition_level> selectByExample(markup_condition_levelExample example) throws InterruptedException {
		List<markup_condition_level> list = manage.getSelectResults("com.ymttest.database.mapping.godmch.markup_condition_levelMapper.selectByExample",example);
		manage.commit();
		return list;
	}
	
	public  markup_condition_level selectByPrimaryKey(Integer agentType) throws InterruptedException {	
		markup_condition_level model=new markup_condition_level();
		List<markup_condition_level> lst = manage.getSelectResults("com.ymttest.database.mapping.godmch.markup_condition_levelMapper.selectByPrimaryKey",agentType);
		if(lst.size()>0)
			 model=lst.get(0);
		manage.commit();
		return model;
	}
	
	
	public  Integer updateByPrimaryKey(markup_condition_level record) throws InterruptedException {	

		Integer result= manage.update("com.ymttest.database.mapping.godmch.markup_condition_levelMapper.updateByPrimaryKey",record);

		manage.commit();
		return result;
	}
	
	public static void main(String args[]) {
	  
	}
}
